/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mnstudent.datatranferobject;

import java.util.ArrayList;
import java.util.Objects;

/**
 *
 * @author lee
 */
public class SubjectDTO {

    private String m_SubjectID;
    private String m_KindOfSubjectID;
    private String m_NameOfSubject;
    private int m_NumberOfCredit;
    private ArrayList<PrerequisiteSubjectDTO> m_ListPrerequisiteSubject;
    private ArrayList<MajorOfSubjectDTO> m_ListMajorOfSubject;

    public String getSubjectID() {
        return this.m_SubjectID;
    }

    public ArrayList<MajorOfSubjectDTO> getListMajorOfSubject() {
        return m_ListMajorOfSubject;
    }

    public void setListMajorOfSubject(ArrayList<MajorOfSubjectDTO> m_ListMajorOfSubject) {
        this.m_ListMajorOfSubject = m_ListMajorOfSubject;
    }
    
    public void setSubjectID(String strSubjectID) {
        this.m_SubjectID = strSubjectID;
    }

    public String getKindOfSubjectID() {
        return this.m_KindOfSubjectID;
    }
    
    public void setKindOfSubjectID(String strKindOfSubjectID) {
        this.m_KindOfSubjectID = strKindOfSubjectID;
    }
    
    public String getNameOfSubject() {
        return this.m_NameOfSubject;
    }

    public void setNameOfSubject(String strNameOfSubject) {
        this.m_NameOfSubject = strNameOfSubject;
    }

    public ArrayList<PrerequisiteSubjectDTO> getM_ListPrerequisiteSubject() {
        return m_ListPrerequisiteSubject;
    }

    public void setM_ListPrerequisiteSubject(ArrayList<PrerequisiteSubjectDTO> m_ListPrerequisiteSubject) {
        this.m_ListPrerequisiteSubject = m_ListPrerequisiteSubject;
    }
    
    
    
    public int getNumberOfCredit() {
        return this.m_NumberOfCredit;
    }

    public void setNumberOfCredit(int iNumberOfCredit) {
        this.m_NumberOfCredit = iNumberOfCredit;
    }

    public SubjectDTO() {

    }

    public SubjectDTO(String strSubjectID, String strKindOfSubjectID, String strNameOfSubject,
            int iNumberOfCredit) {
        this.m_SubjectID = strSubjectID;
        this.m_KindOfSubjectID = strKindOfSubjectID;
        this.m_NameOfSubject = strNameOfSubject;
        this.m_NumberOfCredit = iNumberOfCredit;
    }
    
    

    @Override
    public String toString() {
        return m_NameOfSubject;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 43 * hash + Objects.hashCode(this.m_SubjectID);
        hash = 43 * hash + Objects.hashCode(this.m_NameOfSubject);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final SubjectDTO other = (SubjectDTO) obj;
        if (!Objects.equals(this.m_SubjectID, other.m_SubjectID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfSubject, other.m_NameOfSubject)) {
            return false;
        }
        return true;
    }

}
